-
-
Notifications
You must be signed in to change notification settings - Fork 503
contracts module #6789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contracts module #6789
Conversation
|
Can one of the admins verify this patch? |
|
@AlexPapadakis could you please take care of the clang-format, cmake-format, and inspect errors reported? |
|
@hkaiser yes absolutely, I will spend time on it in the Weekend |
isidorostsa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, a couple of nitpicks and we should be able to merge
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
487994b to
0040396
Compare
- updated cmake option for enchanced asserts to follow convention - updated fallback logic, added config test for experimental builds - improved documentation - added config test to automatically run the appropriate tests for either native or fallback mode - contracts: Restructure test suite for clarity and completeness - Add comprehensive declaration-based contract failure tests: * declaration_contracts_fail_pre.cpp * declaration_contracts_fail_post.cpp * declaration_contracts_fail_contract_assert.cpp - Remove redundant test files (contract_fail.cpp, simple_contracts_*) - Update CMakeLists.txt with proper test organization: * Declaration tests: C++26 syntax (__cpp_contracts mode) * Fallback tests: Simple syntax (fallback mode) * Disabled tests: No-op behavior testing - Set appropriate WILL_FAIL properties for all failure tests - Test structure now clearly separates native C++26 contract testing from HPX_ASSERT fallback behavior testing, providing comprehensive coverage of all contract modes. - added contracts in core
983587c to
0e1789e
Compare
- fixing remaining CI failures Signed-off-by: Hartmut Kaiser <[email protected]>
0e1789e to
c1a2e50
Compare
|
@AlexPapadakis thank you for working on this! Much appreciated. |
Fixes #
Proposed Changes
-added contracts module
-with fallback to asserts when contracts are not supported
-and option to enchance asserts with contract asserts
Any background context you want to provide?
more on the GSoC report here:
https://alexpapadakis.github.io/hpx_contracts/
Checklist
Not all points below apply to all pull requests.